<div ng-controller="WmsCtrl" ng-init="customsitemsupdateAction()" class="sui-form form-horizontal">
    <form name="itemForm" novalidate>
        <ul class="sui-breadcrumb">
            <li><a href="#/wms/customsitemslist?shop_code={{customsitems.SHOP_CODE}}">{{'海关备案商品'| translate}}</a></li>
            <li class="active">{{'edit'| translate}}</li>
        </ul>

        <div class="control-group">
            <label class="control-label v-top" style="width: 200px;"><b style="color: #f00;">*</b>{{'sku商品货号'| translate}}：</label>
            <div class="controls">
                <input ng-model="customsitems.SKU" name="SKU" type="text" value="" class="input-xlarge" required>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top" style="width: 200px;"><b style="color: #f00;">*</b>{{'商品条形码'| translate}}：</label>
            <div class="controls">
                <input ng-model="customsitems.BAR_CODE" name="BAR_CODE" type="text" value="" class="input-xlarge" required>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label v-top" style="width: 200px;"><b style="color: #f00;">*</b>{{'商品名称'| translate}}：</label>
            <div class="controls">
                <textarea rows="3" ng-model="customsitems.GOODS_NAME" name="GOODS_NAME" class="input-xlarge"></textarea>
            </div>
        </div>
        <!--  <div class="control-group">
            <label class="control-label v-top" style="width: 200px;"><b style="color: #f00;">*</b>{{'CIQ_CODE'| translate}}：</label>
            <div class="controls">
                <input ng-model="customsitems.CIQ_CODE" name="CIQ_CODE" type="text" value="" class="input-xlarge" required>
            </div>
        </div> -->

        <div class="control-group">
            <label class="control-label v-top" style="width: 200px;"><b style="color: #f00;">*</b>{{'规格型号'| translate}}：</label>
            <div class="controls">
                <textarea rows="3" ng-model="customsitems.GOODS_SPEC" name="GOODS_SPEC" class="input-xlarge"></textarea>

            </div>
        </div>
        <!-- <div class="control-group">
            <label class="control-label v-top" style="width: 200px;"><b style="color: #f00;">*</b>{{'入区计量单位代码'| translate}}：</label>
            <div class="controls">
            <item-unicode ng-model="customsitems.IN_AREA_UNIT" ></item-unicode>
            </div>
        </div> -->

        <div class="control-group">
            <label class="control-label v-top" style="width: 200px;"><b style="color: #f00;">*</b>{{'法定单位'| translate}}：</label>
            <div class="controls">
                <item-unicode ng-model="customsitems.LEGAL_UNIT"></item-unicode>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label v-top" style="width: 200px;"><b style="color: #f00;">*</b>{{'法定计量单位折算数量'| translate}}：</label>
            <div class="controls">
                <input ng-model="customsitems.CONV_LEGAL_UNIT_NUM" name="CONV_LEGAL_UNIT_NUM" type="text" value="" class="input-xlarge" required>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label v-top" style="width: 200px;"><b style="color: #f00;">*</b>{{'申报计量单位'| translate}}：</label>
            <div class="controls">
                <item-unicode ng-model="customsitems.DECLARE_UNIT"></item-unicode>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label v-top" style="width: 200px;"><b style="color: #f00;">*</b>{{'入区计量单位折算数量'| translate}}：</label>
            <div class="controls">
                <input ng-model="customsitems.CONV_IN_AREA_UNIT_NUM" name="CONV_IN_AREA_UNIT_NUM" type="text" value="" class="input-xlarge">
                <br><span style="color:red;">*提示：</span>当法定第二计量单位为千克时，请修改此处备案信息。例如：法二是千克时，此处为1则代表1千克。
            </div>
        </div>


        <div class="control-group">
            <label class="control-label v-top" style="width: 200px;"><b style="color: #f00;">*</b>{{'原产国'| translate}}：</label>
            <div class="controls">
                <item-country-code ng-model="customsitems.ORIGIN_COUNTRY_CODE"></item-country-code>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label v-top" style="width: 200px;"><b style="color: #f00;">*</b>{{'商品hs编码'| translate}}：</label>
            <div class="controls">
                <input ng-model="customsitems.HS_CODE" name="HS_CODE" type="text" value="" class="input-xlarge" required><br>
                <a href="https://www.hsbianma.com/Code/{{customsitems.HS_CODE}}.html" target="_blank">查看税率详情</a>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label v-top" style="width: 200px;"><b style="color: #f00;">*</b>{{'额外单位计量数'| translate}}：</label>
            <div class="controls">
                <input ng-model="customsitems.ewaidanwei" name="ewaidanwei" type="text" value="" class="input-xlarge">
            </div>
        </div>

        <div class="control-group">
            <label class="control-label v-top" style="width: 200px;"><b style="color: #f00;"></b>{{'跨境综合税'| translate}}：</label>
            <div class="controls">
                {{customsitems.tax_rate}} = （ {{customsitems.zz_rate}}增值税 + {{customsitems.xf_rate}}消费税 ） * 0.7 （<a href="https://www.hsbianma.com/Code/{{customsitems.HS_CODE}}.html" target="_blank">查看税率详情</a>）
            </div>
        </div>
        <div class="control-group ">
            <label class="control-label " style="width: 200px; "></label>
            <div class="controls ">
                <button type="submit " id="submit " class="sui-btn btn-primary " ng-disabled="!itemForm.$valid " ng-click="customsitemAdd($event) ">
                    <span>{{'save' | translate}}</span>
                </button>
            </div>
        </div>
    </form>
</div>